﻿using Gp.Scripts.Core;

namespace Gp.Scripts.Core {
    public class SettleCursorAgent : ObjectMouseHandleAgent<EntityBehaviour> {
        public override string TagFilter => SceneTagConst.GameEntity;
        private readonly BattleSettleRoot _model;

        public SettleCursorAgent(BattleSettleRoot model) {
            this._model = model;
        }

        protected override void OnMouseEnter(EntityBehaviour target) {
            _model.OnEntityHighlight(target.Entity);
        }


        protected override void OnMouseExit(EntityBehaviour target) {
            _model.OnEntityDeHighlight(target.Entity);

        }

        protected override void OnMouseClick(EntityBehaviour target) {
            _model.OnEntitySelect(target.Entity);
        }
    }
}